package office.action.hr.wrapper;

import office.bo.hr.impl.CarriageEntry;
import platform.common.bo.IdentifiableObj;

public class CarriageEntryWrapper {

	private String id;
	private String entryUser;			//申请人
	private String useStartDate;		//使用开始时间
	private String useEndDate;			//使用结束时间
	private String reason;				//事由
	private String remark;				//备注
	private String state;				//状态
	private String checkUesr;
	private String carriageId;			//所属车辆
	private String entryUserName;
	private String carriageCode;		//车牌号
	private String stateName;
	
	
	public CarriageEntryWrapper(){
		
	}
	
	public CarriageEntryWrapper(String id,String entryUser,String useStartDate,String useEndDate,
			String reason,String remark,String state,String carriageId,String entryUserName,String carriageCode){
		this.id = id;
		this.entryUser = entryUser;
		this.useStartDate = useStartDate;
		this.useEndDate = useEndDate;
		this.reason = reason;
		this.remark = remark;
		this.state = state;
		if(null!=state && !("").equals(state)){
			if(state.equals("0")){
				this.stateName="等待审批";
			}else if(state.equals("1")){
				this.stateName="通过审批";
			}
			
		}
		this.carriageId = carriageId;
		this.entryUserName = entryUserName;
		this.carriageCode = carriageCode;
	}
	
	public CarriageEntryWrapper(String id,String entryUser,String useStartDate,String useEndDate,
			String reason,String remark,String state,String entryUserName,String carriageId){
		this.id = id;
		this.entryUser = entryUser;
		this.useStartDate = useStartDate;
		this.useEndDate = useEndDate;
		this.reason = reason;
		this.remark = remark;
		this.state = state;
		if(null!=state && !("").equals(state)){
			if(state.equals("0")){
				this.stateName="等待审批";
			}else if(state.equals("1")){
				this.stateName="通过审批";
			}
			
		}
		this.carriageId = carriageId;
		this.entryUserName = entryUserName;
		//this.carriageCode = carriageCode;
	}
	
	/**
	 * 从bo拷贝属性
	 * @param baseBO
	 */
	public void copyToWrapper(IdentifiableObj baseBO){
		CarriageEntry bo = (CarriageEntry)baseBO;
		this.id = bo.getId().toString();
		this.entryUser = bo.getEntryUser();
		this.useStartDate = bo.getUseStartDate();
		this.useEndDate = bo.getUseEndDate();
		this.reason = bo.getReason();
		this.remark = bo.getRemark();
		this.state = bo.getState();
		this.checkUesr = bo.getCheckUesr();
		this.carriageId = bo.getCarriageId();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getEntryUser() {
		return entryUser;
	}

	public void setEntryUser(String entryUser) {
		this.entryUser = entryUser;
	}

	public String getUseStartDate() {
		return useStartDate;
	}

	public void setUseStartDate(String useStartDate) {
		this.useStartDate = useStartDate;
	}

	public String getUseEndDate() {
		return useEndDate;
	}

	public void setUseEndDate(String useEndDate) {
		this.useEndDate = useEndDate;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getCheckUesr() {
		return checkUesr;
	}

	public void setCheckUesr(String checkUesr) {
		this.checkUesr = checkUesr;
	}

	public String getCarriageId() {
		return carriageId;
	}

	public void setCarriageId(String carriageId) {
		this.carriageId = carriageId;
	}

	public String getEntryUserName() {
		return entryUserName;
	}

	public void setEntryUserName(String entryUserName) {
		this.entryUserName = entryUserName;
	}

	public String getCarriageCode() {
		return carriageCode;
	}

	public void setCarriageCode(String carriageCode) {
		this.carriageCode = carriageCode;
	}

	public String getStateName() {
		return stateName;
	}

	public void setStateName(String stateName) {
		this.stateName = stateName;
	}
	
	
}
